package spms.data.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import spms.data.dao.UserDao;
import spms.data.entity.User;
import spms.data.service.UserService;
import spms.util.Page;

@Repository
public class UserServiceImpl extends BaseServiceImpl<User> implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public User findByUserId(int id) {
        return userDao.findByUserId(id);
    }

    @Override
    public int count(String tableName) {
        return super.count(tableName);
    }

    @Override
    public Page<User> findPage(int pageNum, int pageSize, Class<User> clazz) throws Exception {
        return super.findPage(pageNum, pageSize, clazz);
    }
}
